﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.DoMain
{
    public class ProductionTaskItem
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int taskItemId { get; set; }

        /// <summary>
        /// 表头Id
        /// </summary>
        public int? head_id { get; set; }

        /// <summary>
        /// 商品Id
        /// </summary>
        public int? product_id { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal? oper_number { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal? unit_price { get; set; }
        /// <summary>
        /// 总金额
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal? all_price { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? remark { get; set; }
        //租户id
        public int? tenant_id { get; set; } = 1;
        //删除标记，0未删除，1删除，默认0
        public bool delete_flag { get; set; } = false;
    }
}
